package com.itheima.socket.udp.demo03;

public class ChatRoom {

    public static void main(String[] args) {

        // 创建两个任务类的对象
        SendDataThread sendDataThread = new SendDataThread() ;
        ReceiveThread receiveThread  = new ReceiveThread() ;

        // 创建线程对象
        Thread t1 = new Thread(sendDataThread);
        Thread t2 = new Thread(receiveThread) ;

        // 启动线程
        t1.start();
        t2.start();

    }

}
